package com.ruoyi.common.core.cg.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 *
 * @TableName store
 */

public class Store implements Serializable {
    /**
     * 商铺ID
     */

    private Integer id;

    /**
     * 店铺名称
     */
    private String name;

    /**
     * 店铺类型0果蔬店、1商品店......
     */
    private Integer type;

    /**
     * 店铺状态0正常、1封禁
     */
    private Integer status;



    /**
     * 商铺总金额
     */
    private BigDecimal price;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    /**
     * 店铺地址
     */
    private String address;
    private LeaderStore leaderStores;
    private Leader leader;
    private List<Order_store> order_store;
    private List<UserOrder> userOrder;
    private Integer user;
    private Integer group;
    private Integer order;
    private String invitationCode;
    private String idcard;
    private String Lname;
    private String typeName;

    /**
     * 身份证正面
     */
    private String frontIdCard;

    /**
     * 身份证反面
     */
    private String sideIdCard;

    /**
     * 营业执照
     */
    private String license;

    /**
     * 食品许可
     */
    private String foodHygieneApproval;
    private String communityName;

    @Override
    public String toString() {
        return "Store{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type=" + type +
                ", status=" + status +
                ", price=" + price +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", address='" + address + '\'' +
                ", leaderStores=" + leaderStores +
                ", leader=" + leader +
                ", order_store=" + order_store +
                ", userOrder=" + userOrder +
                ", user=" + user +
                ", group=" + group +
                ", order=" + order +
                ", invitationCode='" + invitationCode + '\'' +
                ", idcard='" + idcard + '\'' +
                ", Lname='" + Lname + '\'' +
                ", typeName='" + typeName + '\'' +
                ", frontIdCard='" + frontIdCard + '\'' +
                ", sideIdCard='" + sideIdCard + '\'' +
                ", license='" + license + '\'' +
                ", foodHygieneApproval='" + foodHygieneApproval + '\'' +
                ", communityName='" + communityName + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getFrontIdCard() {
        return frontIdCard;
    }

    public void setFrontIdCard(String frontIdCard) {
        this.frontIdCard = frontIdCard;
    }

    public String getSideIdCard() {
        return sideIdCard;
    }

    public void setSideIdCard(String sideIdCard) {
        this.sideIdCard = sideIdCard;
    }

    public String getLicense() {
        return license;
    }

    public void setLicense(String license) {
        this.license = license;
    }

    public String getFoodHygieneApproval() {
        return foodHygieneApproval;
    }

    public void setFoodHygieneApproval(String foodHygieneApproval) {
        this.foodHygieneApproval = foodHygieneApproval;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    private String phone;

    public String getLname() {
        return Lname;
    }

    public void setLname(String lname) {
        Lname = lname;
    }

    public String getInvitationCode() {
        return invitationCode;
    }

    public void setInvitationCode(String invitationCode) {
        this.invitationCode = invitationCode;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public LeaderStore getLeaderStores() {
        return leaderStores;
    }

    public void setLeaderStores(LeaderStore leaderStores) {
        this.leaderStores = leaderStores;
    }

    public Leader getLeader() {
        return leader;
    }

    public void setLeader(Leader leader) {
        this.leader = leader;
    }

    public List<Order_store> getOrder_store() {
        return order_store;
    }

    public void setOrder_store(List<Order_store> order_store) {
        this.order_store = order_store;
    }

    public List<UserOrder> getUserOrder() {
        return userOrder;
    }

    public void setUserOrder(List<UserOrder> userOrder) {
        this.userOrder = userOrder;
    }

    public Integer getUser() {
        return user;
    }

    public void setUser(Integer user) {
        this.user = user;
    }

    public Integer getGroup() {
        return group;
    }

    public void setGroup(Integer group) {
        this.group = group;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

}
